

import request from "@/service/axios/index";

const orderApi = {
    // 查询订单列表
    getOrderList: (params,cancelToken) => {
        return request.post({ url: '/order/list', params,cancelToken })
    },
    // 获取订单详情
    getOrder: (id) => {
        return request.get({ url: '/order/get?id=' + id })
    },
    // 新增订单
    createOrder: (data) => {
        return request.post({ url: '/order/create', data })
    },

    // 删除订单
    deleteOrder: (id) => {
        return request.delete({ url: '/order/delete?id=' + id })
    }
}
export default orderApi;
